﻿/// <reference path="jquery-1.7.2.js" />

var WebRoot = "/";
var Resource = "/Configs/";
var LocalInfoSrc = {};

//-------------初始化-------------
function initial() {
    getXmlFile("Menu", function (xml) {
        $obj = $(xml);
        LocalInfoSrc = xml;
    });
}


//读取XML文件
function getXmlFile(fileName, fn) {
    $.ajax({
        url: Resource + fileName + ".xml",
        cache: true,
        success: function (e) {
            var xml = e.xml;
            if (xml != undefined && fn != "") {
                fn(xml);
            }
        },
        error: function (e) {
            alert(e.responseText);
        }
    });
}



